package cn.bgs.service.impl;

import cn.bgs.dao.UserMapper;
import cn.bgs.pojo.Lian;
import cn.bgs.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserServiceImpl implements UserService {
    @Autowired private UserMapper userMapper;

    @Override
    public Lian login(String name, String password) {
        return userMapper.login(name,password);
    }

    @Override
    public List<Lian> findAll() {
        return userMapper.findAll();
    }

    @Override
    public Lian findById(Integer id) {
        return  userMapper.findById(id);
    }

    @Override
    public void update(Lian lian) {
        userMapper.update(lian);
    }

    @Override
    public List<Lian> QueryLian(String name) {
        return  userMapper.QueryLian(name);
    }

    @Override
    public Map<Integer, Lian> QueryLianBirthday(String birthday) {
        return  userMapper.QueryLianBirthday(birthday);
    }


}
